/**
 * 
 */
package com.xpec.c4.message;

import java.io.Serializable;

import com.xpec.c4.game.utility.GUID;
import com.xpec.c4.service.server.CloseType;

/**
 * 玩家的状态改变
 * 
 * @author lipeilin
 * @2011-3-14 下午10:00:46
 *
 */
public class ContextStatus  implements Serializable{
	
	/**
	 * Context开始
	 */
	public static final int CONTEXT_START = 0 ;
	
	/**
	 * Context结束，普通的状况，即断线
	 */
	public static final int CONTEXT_END = 1 ;

	private GUID sessionId;
	
	private GUID userId;
	
	/**
	 * 状态
	 */
	private int status;
	
	/**
	 * 结束类型，只有status == CONTEXT_END，才有意义
	 */
	private CloseType closeType;
	
	/**
	 * 開始時 設定gateway
	 */
	private String gateway;
	
	/**
	 * 開始時 設定client ip
	 */
	private String clientIp;
	
	/**
	 * 開始時 設定 platForm 平台種類
	 */
	private String loginPlatform;
	
	/**
	 * h5 agent 回傳資料時用的參數
	 */
	private String agentData;

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public GUID getSessionId() {
		return sessionId;
	}

	public void setSessionId(GUID sessionId) {
		this.sessionId = sessionId;
	}

	public GUID getUserId() {
		return userId;
	}

	public void setUserId(GUID userId) {
		this.userId = userId;
	}

	public CloseType getCloseType() {
		return closeType;
	}

	public void setCloseType(CloseType closeType) {
		this.closeType = closeType;
	}

	public String getGateway() {
		return gateway;
	}

	public void setGateway(String gateway) {
		this.gateway = gateway;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public String getLoginPlatform() {
		return loginPlatform;
	}

	public void setLoginPlatform(String loginPlatform) {
		this.loginPlatform = loginPlatform;
	}

	public String getAgentData() {
		return agentData;
	}

	public void setAgentData(String agentData) {
		this.agentData = agentData;
	}
}
